package com.college.action;

import org.hibernate.Session;

import com.college.entity.Result;
import com.college.entity.Results;
import com.college.entity.Feedback;
import com.college.service.FeedbackService;

public class FeedbackAction extends BaseAction {
	public Feedback getFeedback() {
		return feedback;
	}

	public void setFeedback(Feedback feedback) {
		this.feedback = feedback;
	}

	public void setFeedbackService(FeedbackService feedbackService) {
		this.feedbackService = feedbackService;
	}

	private Feedback feedback;
	private FeedbackService feedbackService;

	public void queryfeedback() {
		Results<Feedback> results = feedbackService.query(feedback);
		print(results);
	}

	public void addfeedback() {
		Result<Boolean> result = feedbackService.addFeedback(feedback);
		print(result);
	}
}
